package com.wanmait.deliverymangementsystem.service.impl;

import com.wanmait.deliverymangementsystem.mapper.AdminMapper;
import com.wanmait.deliverymangementsystem.pojo.Admin;
import com.wanmait.deliverymangementsystem.service.AdminService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class AdminServiceImpl implements AdminService {
    @Resource
    private AdminMapper adminMapper;
    @Override
    public Admin Login(Admin admin) {
        return adminMapper.selectAdminByAccountAndPassword(admin);
    }

    @Override
    public void updateLastLoginTime(Integer id) {
        adminMapper.updatelast_login_timeByID(id);
    }
}
